package com.example.gss.entity;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 导师实体类，对应数据库中的tutor表
 */
@Data
public class Tutor implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String tutorId;     // 导师ID
    private String password;    // 密码
    private String name;        // 姓名
    private String title;       // 职称
    private String department;  // 所属院系
    private String groupId;     // 导师组ID

    // 无参构造函数
    public Tutor() {
    }

    // 有参构造函数
    public Tutor(String tutorId, String password, String name, String title, String department, String groupId) {
        this.tutorId = tutorId;
        this.password = password;
        this.name = name;
        this.title = title;
        this.department = department;
        this.groupId = groupId;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "Tutor{" +
                "tutorId='" + tutorId + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", department='" + department + '\'' +
                ", groupId='" + groupId + '\'' +
                '}';
    }
}